home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / Kamprath's CDEF Pack ƒ / Square CDEF / Square CDEF - READ ME next >
Encoding:
Text File  |  1994-06-12  |  2.6 KB  |  78 lines  |  [TEXT/KAHL]

  1. /************************************************************************** 
  2.  
  3.  Square Button CDEF
  4.  by Michael F. Kamprath
  5.  
  6.  Copyright © 1994 by Michael F. Kamprath
  7.  
  8. Requirments:
  9. ============
  10.  
  11. This CDEF can only be used with system 6.0 or later.
  12. For it to be color, requires 32 Bit Quickdraw.
  13.  
  14. Description
  15. ===========
  16.  
  17. This a 3D square and gray push button CDEF.  It is very easy to use and very
  18. customizable.  You may specify the control title's text font, face, and size
  19. by appropiately setting the following control parameters AT CONTROL 
  20. INITIALIZATION:
  21.  
  22.     Control Maximum:    Text Font (the font's system ID number)
  23.     Control Minimum:    Text Size
  24.     Control Value:        Text Face  (remeber, "Style" is a byte, so don't
  25.                                     make this value great than 255)
  26.  
  27. After the control is initialized, these parameters will be set to these values:
  28.  
  29.     Control Maximum:    1
  30.     Control Minimum:    0
  31.     Control Value:        0
  32.  
  33. The control title will be centered in the control rectangle.  Please be aware that
  34. you must have a different CDEF resource for each variation you want on the
  35. control's type face.  Initializing a control will set the type face for all
  36. controls already defined with that particular CDEF rescource.  If you think
  37. about it, this could be a useful feature.
  38.  
  39. The "top" of the button is actually a rectangle that is inset by 2 pixels from 
  40. the control rectangle, so be sure to allow enough room for the font you choose.
  41.  
  42. The button can exist in both an "up" (control value = 0) and "down" (control
  43. value = 1) state, plus has a seperate appearance for an inactive state
  44. (control hilite = 255).  
  45.  
  46.  
  47. Shareware Info:
  48. ===============
  49.  
  50. If you use this CDEF for personal use, all I ask is that you send me a note
  51. and maybe a copy of the program you use it in.
  52.  
  53. If you use this CDEF for somethiong that you later charge money for (like
  54. your own shareware software or commercial software), the price for it's use
  55. is a one time payment of $5 and maybe a copy of your program.  If you don't 
  56. wish to give me a free copy of your program, I understand (after all, I'm 
  57. asking for money).
  58.  
  59. If you wish for the source code to this CDEF, I will send it to you when you
  60. send your shareware payment ($5).  This will cover the cost of a disk and postage.
  61.  
  62. Please make all payments in U.S. funds.
  63.  
  64. You may contact me by:
  65.  
  66.      e-mail:      kamprath@aol.com
  67.  
  68.      postal mail: Michael F. Kamprath
  69.                   524 Avenue C
  70.                   Redondo Beach, CA  90277
  71.                   
  72. Legal Stuff
  73. ===========
  74.  
  75. I provide no warranty, written or implied, nor do I accept any responsibility
  76. for damages inflicted, real or imagined, by the use of this CDEF.
  77.      
  78. *******************************************************************************/